<template>
	<view class="btn" :class="type" :style="{height:height,fontSize:fontSize}">
		<slot></slot>
	</view>
</template>

<script setup lang="ts">
	defineProps({
		type: {
			type: String,
			default: 'primary'
		},
		height: {
			type: String,
			default: '84rpx'
		},
		fontSize: {
			type: String,
			default: '28rpx'
		}
	})
</script>

<style scoped lang="scss">
	.btn {
		display: flex;
		justify-content: center;
		align-items: center;
		// width:100%;
		color: #fff;
		// font-weight: bold;
		border-radius: 60rpx;
		border: 2rpx solid transparent;

		&.primary {
			background-color: $primary-color;
		}

		&.cancel {

			border-color: $primary-color;
			color: $primary-color;
			background-color: #fff;
		}
	}
</style>